// routes.js 保存所有的路由表映射信息
const routes = [
  {
    path:"/",
    redirect:"/login"
  },
  {
    path: '/home',
    name: 'home',
    component: () => import('../views/HomeView.vue'),
    redirect:"/home/index",
    children:[
      {
        path:"index",
        name:"home_index",
        component:() => import("../views/home/HomeIndex.vue")
      },
      {
        path:"user",
        name:"home_user",
        component:() => import("../views/home/HomeUser.vue")
      },
      {
        path:"shop",
        name:"home_shop",
        component:() => import("../views/home/HomeShop.vue")
      },
      {
        path:"order/:data",
        name:"home_order",
        component:() => import("../views/home/HomeOrder.vue")
      },
      {
        path:"logistics",
        name:"home_logistics",
        component:() => import("../views/home/HomeLogistics.vue")
      }
    ]
  },
  {
    path: '/about',
    name: 'about',
    component: () => import('../views/AboutView.vue')
  },
  {
    path:"/login",
    name:"login",
    component:() => import("../views/LoginView.vue")
  },
  // {
  //   path:"/home/index",
  //   name:"home_index",
  //   component:() => import("../views/HomeIndex.vue")
  // }
]
// https://admin.it120.cc/#/user/pluginInfo/list
export default routes